@echo off
cd /d "%~dp0%"
mklink /J "C:\Program Files\SOLIDWORKS Corp" "%~dp0%"
echo Make common files
mklink /J "C:\Program Files\Common Files\Macrovision Shared" "%~dp0Common Files\Macrovision Shared"
mklink /J "C:\Program Files\Common Files\SOLIDWORKS Shared" "%~dp0Common Files\SOLIDWORKS Shared"
echo 调入注册表
regedit /s "C:\Program Files\SOLIDWORKS Corp\注册表测试.reg"
echo 安装服务
set ins=C:\Program Files\SOLIDWORKS Corp\SolidWorks_Flexnet_Server
"%ins%\installs.exe" -c "%ins%\sw_d_SSQ.lic" -e "%ins%\lmgrd.exe" -l "%ins%\sw_d_SSQ.log" -n "SolidWorks Flexnet Server"
echo 启动服务
net start "SolidWorks Flexnet Server"
echo 初使化程序
"C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS\sldProcMon.exe"
echo 安装字体
fontinst
echo 创建桌面图标
set inpth=C:\Program Files\SOLIDWORKS Corp\
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\SLDWORKS2020.lnk""):b.TargetPath=""%inpth%SOLIDWORKS\SLDWORKS.exe"":b.WorkingDirectory=""%inpth%SOLIDWORKS"":b.Save:close")
echo SolidWorks安装完成!
pause>nul